Page({
    //调用云函数add
    async handleAdd(){
        let result =await wx.cloud.callFunction({
            name:"add",
            data:{
                a:100,
                b:200
            }
        })
        .catch(err=>console.log(err))
        console.log(result)
    },
    //批量删除
    async handleDel(){
       let result =await  wx.cloud.callFunction({
            name:"multiDel",
            data:{
                weight:200
            }
        })
        .catch(err=>{
            console.log(err)
        })
        console.log(result)
    }
    
})